<?php echo $this->element('right_panel'); ?>
<div id="left_panel">
<H2>Register or login</h2>
<table>
<tr>
<td>
<div class="users form">
<?php echo $this->Form->create('User',array('action' => 'add'));?>
	<fieldset>
		<legend><?php __('Register'); ?></legend>
	<?php
		echo $this->Form->input('username');
		echo $this->Form->input('password');
		echo $this->Form->input('password_confirmation', array('type'=> 'password'));
		echo $this->Form->input('email', array('label' => 'Email (optional)'));
		if ($admin) {
			echo $this->Form->input('roles');
		}
	?>
	</fieldset>
<?php echo $this->Form->end(__('Register', true));?>
</div>
</td>
<td>
<div class="login_form">
<?php echo $form->create('User', array('action' => 'login')); ?>
		<fieldset>
		<legend><?php __('Login'); ?></legend>
<?php echo $session->flash('auth'); ?>
<?php echo $form->input('username'); ?>
<?php echo $form->input('password'); ?>
		</fieldset>
<?php echo $form->end('Login'); ?>
</div>
</td>
</tr>
</table>
</div>
